<template>
    <span class="span2">我是页面2</span>
    <br>
    <!-- 路由params传参 -->
    <span class="span2">路由props传参，title：{{ title }}，content：{{ content }}</span>
</template>

<!-- js或ts -->
<script lang="ts">
export default {
    name: 'routeTransmitTest1Page2'
}
</script>

<!-- js或ts -->
<script setup lang="ts">
//接收路由props参数
defineProps(['title', 'content'])
</script>

<!-- 样式 -->
<style scoped></style>